// C++ author 清晨与猫鱼
#include <iostream>
#include <string>
#include "Realize.h"

using namespace std;

int main(const int argc, const char** argv)
{	
    
    StudentDaoImpl studentDaoImpl;
	StudentDao* studentDao = &studentDaoImpl;

    for (Student& stu : studentDao->getAllStudents()) {
        cout << "Student: [RollNo : " << stu.getRollNo() << ", Name : " << stu.getName() << endl;
    }


    Student& student = studentDao->getAllStudents().front();

    student.setName("Michael");

    // studentDao->updateStudent(student);

    for (Student& stu : studentDao->getAllStudents()) {
        cout << "Student: [RollNo : " << stu.getRollNo() << ", Name : " << stu.getName() << endl;
    }
}